package demisemapping;

import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.File;
import javax.imageio.ImageIO;

public class Images {
    public static Image WALKABLE, UNWALKABLE, STAIRS_UP, STAIRS_DOWN, ARROW_NORTH, ARROW_SOUTH, ARROW_WEST, ARROW_EAST;
    static {
        loadImages();
    }
    
    public static void loadImages() {
        try {
            WALKABLE = ImageIO.read(new File("data/walkable.jpg")).getScaledInstance(Dungeon.TILESIZE, Dungeon.TILESIZE, Image.SCALE_SMOOTH);
            UNWALKABLE = ImageIO.read(new File("data/unwalkable.jpg")).getScaledInstance(Dungeon.TILESIZE, Dungeon.TILESIZE, Image.SCALE_SMOOTH);
            STAIRS_UP = ImageIO.read(new File("data/stairs_up.jpg")).getScaledInstance(Dungeon.TILESIZE, Dungeon.TILESIZE, Image.SCALE_SMOOTH);
            STAIRS_DOWN = ImageIO.read(new File("data/stairs_down.jpg")).getScaledInstance(Dungeon.TILESIZE, Dungeon.TILESIZE, Image.SCALE_SMOOTH);
            ARROW_NORTH = ImageIO.read(new File("data/north.gif")).getScaledInstance(Dungeon.TILESIZE, Dungeon.TILESIZE, Image.SCALE_SMOOTH);
            ARROW_SOUTH = ImageIO.read(new File("data/south.gif")).getScaledInstance(Dungeon.TILESIZE, Dungeon.TILESIZE, Image.SCALE_SMOOTH);
            ARROW_WEST = ImageIO.read(new File("data/west.gif")).getScaledInstance(Dungeon.TILESIZE, Dungeon.TILESIZE, Image.SCALE_SMOOTH);
            ARROW_EAST = ImageIO.read(new File("data/east.gif")).getScaledInstance(Dungeon.TILESIZE, Dungeon.TILESIZE, Image.SCALE_SMOOTH);
        } catch (Exception ex) { ex.printStackTrace(); }
    }
}
